
require("Common/define");
require("Common/functions");

require("View/LoginPanel");
require("View/HallPanel");

GameRoot={};
local this = GameRoot;
local transform;

function GameRoot.OnAwake()
	print("hello luaFramework");

	LoginPanel.New();

	--public void LoadPrefab(string abName, string[] assetNames, LuaFunction func) {
	-- local res = LuaFramework.LuaHelper.GetResManager()
	-- resMgr:LoadPrefab("prefabs",{"player","other"},this.LoadOK);
	--				bundle名（文件夹名）	预制体的名字的数组
end

-- function GameRoot.LoadOK(objs)
-- 	local prefab=objs[0];

-- 	local go = newObject(prefab);
-- 	transform = go.transform;

-- 	UpdateBeat:Add(this.Update)
-- end

-- --lua的update
-- function GameRoot.Update()
-- 	if(transform)then
-- 		local dx = Input.GetAxis("Horizontal");
-- 	    local dy = Input.GetAxis("Vertical");

-- 	    local dir = Vector3.forward * dy + Vector3.right * dx;
-- 	    transform:Translate(dir * Time.deltaTime);
-- 	end
-- end